package kitread.ui.widgets;

import javax.swing.AbstractListModel;

import kitread.model.FeedItem;
import kitread.model.FeedsCollection;

public class FeedItemsListModel extends AbstractListModel<FeedItem> {

	private static final long serialVersionUID = 1226363762054310875L;
	private FeedsCollection feeds;
	
	public FeedItemsListModel(FeedsCollection feeds) {
		this.feeds = feeds;
	}

	@Override
	public int getSize() {
		return feeds.size();
	}

	@Override
	public FeedItem getElementAt(int index) {
		return feeds.get(index);
	}

}
